package com.ljx.poi.vo;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelCollection;
import lombok.Data;

import java.time.LocalDate;
import java.util.List;

/**
 * @author 李捷禧
 * Date: 2023/7/27
 * ClassName: CertificateListBO
 */

@Data
public class CertificateListBO {
    /**
     * @Fields id 主键
     */
    private String id;
    /**
     * @Fields certificateName 证书名称
     */
    @Excel(needMerge = true, name = "证书名称", width = 20)
    private String certificateName;

    /**
     * @Fields certificateStatus 证书状态:0正常,1异常，2停用
     */
    @Excel(needMerge = true, name = "证书状态", width = 10)
    private String certificateStatus;
    /**
     * @Fields certificateExpiryTime 证书到期时间
     */
    @Excel(needMerge = true, name = "到期时间", width = 20, exportFormat = "yyyy-MM-dd")
    private LocalDate certificateExpiryTime;
    /**
     * @Fields lastTimeCertificateExpired 证书上一次到期时间
     */
    @Excel(needMerge = true, name = "上一次到期时间", width = 20, exportFormat = "yyyy-MM-dd")
    private LocalDate lastTimeCertificateExpired;

    /**
     * @Fields delFlag 逻辑删除状态(0在用，1删除)
     */
    private Boolean delFlag;

    /**
     * 应用信息
     */
    @ExcelCollection(name = "应用信息")
    private List<CertificateApplicationConfigListBO> certificateApplicationConfigListBO;
}

